package com.bj58.mis.apm.server.kylin.service.impl;

import com.bj58.mis.apm.server.kylin.mapper.ZipFileMapper;
import com.bj58.mis.apm.server.kylin.service.IZipFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.Map;

@Service
public class ZipFileServiceImpl implements IZipFileService {

    @Resource
    private ZipFileMapper zipFileMapper;

    @Override
    public void saveZipFile(Map<String, Object> map) {
        if(map == null || map.size() == 0){
            return;
        }
        zipFileMapper.saveZipFile(map);
    }

    @Override
    public void updateZipFile(Map<String, Object> map) {
        if(map == null || map.size() == 0){
            return;
        }
        zipFileMapper.updateZipFile(map);
    }

    @Override
    public Date selectZipFile(Map<String, Object> map) {
        if(map == null || map.size() == 0){
            return null;
        }
        return zipFileMapper.selectZipFile(map);
    }
}
